package com.wtwd.campus.dao;

import com.wtwd.campus.entity.LastLocationData;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author mjy
 * @since 2022-12-01
 */
@Mapper
public interface LastLocationDataMapper extends BaseMapper<LastLocationData> {

    List<Map<String, Object>> getClassesLocationListByClassOrImei(@Param("classId") Integer classId,@Param("imei") String imei,@Param("orgCode") String orgCode);

    List<Map<String, Object>> getLastLocationByStudentIds(@Param("list") List<Integer> stuIdList);

    List<Map<String, Object>> queryH5LastLocationDataByDeviceIds(@Param("list") List<Integer> queryList,@Param("userId") Integer userId);
}
